package com.bupt.kgplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuyunfei
 * @since 2023-05-16
 */
@Getter
@Setter
@TableName("kg_database")
public class KgDatabase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String dbname;

    private String dbnumber;

    /**
     * 0:mysql, 1:hivae, 2:mongodb
     */
    private Integer type;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String url;

    private String port;

    private String username;

    private String password;

    private String reviser;

    private String status;

    @Override
    public String toString(){
        return "dbname-"+dbname+"dbnumber-"+dbnumber+"type-"+type;
    }
}
